# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=python-requesocks
_pkgname=requesocks
pkgver=0.10.8
pkgrel=5
pkgdesc='Python HTTP for Humans, with socks proxy support.'
arch=('any')
url='https://pypi.org/project/requesocks/#files'
license=('ISC')
depends=('python' 'python-certifi' 'python-chardet')
makedepends=('python-setuptools' 'python-socks')
source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/$_pkgname-$pkgver.tar.gz")
sha512sums=('aa81b572ba5ec36d07fe35ca74cb7684df33d22899e6abd48011f49b4897db680861ca8e81f05d4dff7e3759bfc4d72d5e4838cdab3062313abd7cffe7be80bf')

build() {
  cd "$_pkgname-$pkgver"

  python setup.py build
}

package() {
  cd "$_pkgname-$pkgver"

  python setup.py install --root="$pkgdir" --prefix=/usr -O1 --skip-build
}

